package com.bookstore.service;

import com.bookstore.bean.ShoppingCart;

/**
 * Created by Admin on 9/16 0016.
 */
public interface ShoppingService {
    /**
     * 删除购物车指定商品
     *
     * @param sc
     * @param id
     */
    void delete(ShoppingCart sc, int id);

    /**
     * 清空购物车
     *
     * @param sc
     */
    void clear(ShoppingCart sc);

    /**
     * 修改指定购物车的数量
     *
     * @param sc
     * @param id
     * @param quantity
     */
    void updateItemQuantity(ShoppingCart sc, int id, int quantity);
}
